<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单详情</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
	<%@ include file="/pages/common/head.jsp"%>
</head>
<body>

	<div id="header">
			<img class="logo_img" alt="" src="static/img/logo.jpg" >
			<span class="wel_word">订单详情</span>
	</div>
	
	<div id="main">
	
		<table>
			<tr>订单号: ${sessionScope.orderId}</tr>
			<tr>
				<td>商品</td>
				<td>单价</td>
				<td>购买数量</td>
			</tr>
			<c:if test="${not empty sessionScope.ordersDetailList}">
				<c:forEach items="${sessionScope.ordersDetailList}" var="ordersDetail">
					<tr>
						<td>${ordersDetail.productName}</td>
						<td>${ordersDetail.price}</td>
						<td>${ordersDetail.quantity}</td>
					</tr>
				</c:forEach>
			</c:if>
		</table>
		
	</div>

</body>
</html>